.class public Lcom/instagram/android/directshare/d/d;
.super Lcom/instagram/e/b/b;
.source "InboxFragment.java"

# interfaces
.implements Lcom/instagram/a/b;
.implements Lcom/instagram/android/activity/m;


# instance fields
.field private Z:Landroid/view/View;

.field private a:Lcom/instagram/android/directshare/d/a;

.field private aa:Z

.field private ab:Z

.field private ac:Landroid/content/BroadcastReceiver;

.field private ad:Landroid/content/IntentFilter;

.field private ae:I

.field private af:Z

.field private ag:Z

.field private ah:Lcom/instagram/android/d/k/l;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/k/l",
            "<",
            "Lcom/instagram/android/directshare/b/b/a;",
            ">;"
        }
    .end annotation
.end field

.field private b:Lcom/facebook/b/a/j;

.field private c:Lcom/instagram/android/directshare/d/l;

.field private d:Lcom/instagram/android/directshare/d/n;

.field private e:Lcom/instagram/android/activity/k;

.field private f:Lcom/instagram/android/feed/e/b;

.field private g:Landroid/widget/ListView;

.field private h:Landroid/widget/LinearLayout;

.field private i:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 102
    new-instance v0, Lcom/instagram/android/directshare/d/l;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/directshare/d/l;-><init>(Lcom/instagram/android/directshare/d/d;Lcom/instagram/android/directshare/d/e;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->c:Lcom/instagram/android/directshare/d/l;

    .line 122
    new-instance v0, Lcom/instagram/android/directshare/d/e;

    invoke-direct {v0, p0}, Lcom/instagram/android/directshare/d/e;-><init>(Lcom/instagram/android/directshare/d/d;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->ah:Lcom/instagram/android/d/k/l;

    .line 567
    return-void
.end method

.method private Y()V
    .locals 3

    .prologue
    .line 388
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/s;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 389
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->v()Landroid/view/View;

    move-result-object v1

    sget v2, Lcom/facebook/aw;->inbox_empty:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 391
    :cond_0
    return-void
.end method

.method private Z()V
    .locals 2

    .prologue
    .line 398
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->Z:Landroid/view/View;

    if-eqz v0, :cond_0

    .line 399
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/s;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/a;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 400
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->Z:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 405
    :cond_0
    :goto_0
    return-void

    .line 402
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->Z:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/directshare/d/d;Landroid/view/View;)Landroid/view/View;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-object p1, p0, Lcom/instagram/android/directshare/d/d;->Z:Landroid/view/View;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/directshare/d/d;)Lcom/instagram/android/directshare/d/n;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->d:Lcom/instagram/android/directshare/d/n;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/directshare/d/d;Ljava/util/List;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/instagram/android/directshare/d/d;->a(Ljava/util/List;)V

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 7
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/directshare/e/a;",
            ">;)V"
        }
    .end annotation

    .prologue
    const/4 v3, 0x0

    .line 520
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_1

    .line 521
    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 522
    :cond_0
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/directshare/d/d;->e(I)V

    .line 551
    :cond_1
    :goto_0
    return-void

    .line 524
    :cond_2
    invoke-direct {p0, v3}, Lcom/instagram/android/directshare/d/d;->e(I)V

    .line 525
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/instagram/android/directshare/d/d;->f(I)V

    .line 529
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    :goto_1
    if-lez v0, :cond_3

    .line 530
    iget-object v1, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->removeViewAt(I)V

    .line 529
    add-int/lit8 v0, v0, -0x1

    goto :goto_1

    .line 533
    :cond_3
    const/4 v0, 0x3

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v4

    .line 534
    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v5

    move v2, v3

    .line 535
    :goto_2
    if-ge v2, v4, :cond_4

    .line 536
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/directshare/e/a;

    .line 537
    sget v1, Lcom/facebook/ax;->row_requested_direct_share_avatar:I

    iget-object v6, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v1, v6, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/mediacache/IgImageView;

    .line 542
    invoke-virtual {v0}, Lcom/instagram/android/directshare/e/a;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/android/mediacache/IgImageView;->setUrl(Ljava/lang/String;)V

    .line 543
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 535
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_2

    .line 545
    :cond_4
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    iget v1, p0, Lcom/instagram/android/directshare/d/d;->ae:I

    if-le v0, v1, :cond_1

    .line 546
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    invoke-static {v0}, Lcom/instagram/android/directshare/a/a;->b(I)V

    .line 547
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/directshare/d/d;->ae:I

    goto :goto_0
.end method

.method private a(Z)V
    .locals 1
    .parameter

    .prologue
    .line 459
    sget-object v0, Lcom/instagram/android/directshare/d/b;->b:Lcom/instagram/android/directshare/d/b;

    invoke-virtual {p0, v0, p1}, Lcom/instagram/android/directshare/d/d;->a(Lcom/instagram/android/directshare/d/b;Z)V

    .line 460
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/directshare/d/d;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-boolean p1, p0, Lcom/instagram/android/directshare/d/d;->ag:Z

    return p1
.end method

.method private aa()V
    .locals 2

    .prologue
    .line 408
    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 409
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelection(I)V

    .line 411
    :cond_0
    return-void
.end method

.method private ab()V
    .locals 1

    .prologue
    .line 506
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->af:Z

    .line 507
    return-void
.end method

.method private ac()Z
    .locals 2

    .prologue
    .line 510
    iget-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->af:Z

    .line 511
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/instagram/android/directshare/d/d;->af:Z

    .line 512
    return v0
.end method

.method static synthetic b(Lcom/instagram/android/directshare/d/d;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->Y()V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/directshare/d/d;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/instagram/android/directshare/d/d;->a(Z)V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/directshare/d/d;)Lcom/instagram/android/directshare/d/a;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/directshare/d/d;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-boolean p1, p0, Lcom/instagram/android/directshare/d/d;->ab:Z

    return p1
.end method

.method static synthetic d(Lcom/instagram/android/directshare/d/d;)Z
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->ag:Z

    return v0
.end method

.method private e(I)V
    .locals 1
    .parameter

    .prologue
    .line 554
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->i:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    .line 555
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 556
    return-void
.end method

.method static synthetic e(Lcom/instagram/android/directshare/d/d;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->aa()V

    return-void
.end method

.method static synthetic f(Lcom/instagram/android/directshare/d/d;)Landroid/widget/ListView;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    return-object v0
.end method

.method private f(I)V
    .locals 6
    .parameter

    .prologue
    .line 559
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    sget v1, Lcom/facebook/aw;->inbox_requests_textview:I

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 561
    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->l()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Lcom/facebook/ay;->directshare_inbox_pending_request_count:I

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, p1, v3}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 565
    return-void
.end method

.method static synthetic g(Lcom/instagram/android/directshare/d/d;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->Z()V

    return-void
.end method

.method static synthetic h(Lcom/instagram/android/directshare/d/d;)Lcom/instagram/android/activity/k;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->e:Lcom/instagram/android/activity/k;

    return-object v0
.end method


# virtual methods
.method X()Lcom/instagram/android/directshare/d/a;
    .locals 1

    .prologue
    .line 473
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    return-object v0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 259
    sget v0, Lcom/facebook/ax;->fragment_inbox:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 415
    new-instance v0, Lcom/instagram/android/directshare/d/j;

    invoke-direct {v0, p0}, Lcom/instagram/android/directshare/d/j;-><init>(Lcom/instagram/android/directshare/d/d;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 478
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->e:Lcom/instagram/android/activity/k;

    invoke-virtual {v0, p1, p2, p3}, Lcom/instagram/android/activity/k;->a(IILandroid/content/Intent;)V

    .line 479
    return-void
.end method

.method public a(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 375
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/content/Context;)V

    .line 376
    new-instance v0, Lcom/facebook/b/a/k;

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "InboxFragment.REFRESH_INBOX"

    iget-object v2, p0, Lcom/instagram/android/directshare/d/d;->c:Lcom/instagram/android/directshare/d/l;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "InboxFragment.UPDATE_INBOX"

    iget-object v2, p0, Lcom/instagram/android/directshare/d/d;->c:Lcom/instagram/android/directshare/d/l;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "InboxFragment.INBOX_SHARE_COUNT_CHANGED"

    iget-object v2, p0, Lcom/instagram/android/directshare/d/d;->c:Lcom/instagram/android/directshare/d/l;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "ActionBarService.action_bar_refresh_click"

    iget-object v2, p0, Lcom/instagram/android/directshare/d/d;->c:Lcom/instagram/android/directshare/d/l;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "INTENT_ACTION_PENDING_REQUEST_UPDATED"

    iget-object v2, p0, Lcom/instagram/android/directshare/d/d;->c:Lcom/instagram/android/directshare/d/l;

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->b:Lcom/facebook/b/a/j;

    .line 384
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->b:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 385
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 7
    .parameter

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 208
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 209
    new-instance v0, Lcom/instagram/android/directshare/d/n;

    invoke-direct {v0, p0}, Lcom/instagram/android/directshare/d/n;-><init>(Lcom/instagram/android/directshare/d/d;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->d:Lcom/instagram/android/directshare/d/n;

    .line 211
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/s;->g()Z

    .line 212
    new-instance v0, Lcom/instagram/android/directshare/d/a;

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->getContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/instagram/android/directshare/d/d;->d:Lcom/instagram/android/directshare/d/n;

    invoke-direct {v0, v3, v4}, Lcom/instagram/android/directshare/d/a;-><init>(Landroid/content/Context;Lcom/instagram/android/widget/v;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    .line 213
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    new-instance v3, Lcom/instagram/android/directshare/d/f;

    invoke-direct {v3, p0}, Lcom/instagram/android/directshare/d/f;-><init>(Lcom/instagram/android/directshare/d/d;)V

    invoke-virtual {v0, v3}, Lcom/instagram/android/directshare/d/a;->registerDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 220
    new-instance v0, Lcom/instagram/android/feed/e/b;

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->getContext()Landroid/content/Context;

    move-result-object v3

    sget-object v4, Lcom/instagram/pendingmedia/b/b;->a:Lcom/instagram/pendingmedia/b/b;

    iget-object v5, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v6

    invoke-direct {v0, v3, v4, v5, v6}, Lcom/instagram/android/feed/e/b;-><init>(Landroid/content/Context;Lcom/instagram/pendingmedia/b/b;Lcom/instagram/android/feed/e/f;Lcom/instagram/android/feed/e/e;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->f:Lcom/instagram/android/feed/e/b;

    .line 227
    new-instance v0, Lcom/instagram/android/activity/k;

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v0, v3, p0}, Lcom/instagram/android/activity/k;-><init>(Landroid/content/Context;Lcom/instagram/android/activity/m;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->e:Lcom/instagram/android/activity/k;

    .line 228
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->e:Lcom/instagram/android/activity/k;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/k;->b(Landroid/os/Bundle;)V

    .line 230
    if-eqz p1, :cond_1

    const-string v0, "InboxFragment.IGNORE_ADD_TO_BACKSTACK_ARGUMENT"

    invoke-virtual {p1, v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v1

    :goto_0
    iput-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->aa:Z

    .line 233
    new-instance v0, Lcom/instagram/android/directshare/d/g;

    invoke-direct {v0, p0}, Lcom/instagram/android/directshare/d/g;-><init>(Lcom/instagram/android/directshare/d/d;)V

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->ac:Landroid/content/BroadcastReceiver;

    .line 244
    const-string v0, "directshare"

    invoke-static {v0}, Lcom/instagram/android/c2dm/g;->b(Ljava/lang/String;)Landroid/content/IntentFilter;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->ad:Landroid/content/IntentFilter;

    .line 247
    invoke-direct {p0, v2}, Lcom/instagram/android/directshare/d/d;->a(Z)V

    .line 249
    invoke-static {}, Lcom/instagram/android/directshare/d/w;->b()V

    .line 251
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/b/a;->u()Z

    move-result v0

    if-nez v0, :cond_0

    .line 252
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/instagram/m/b/a;->n(Z)V

    .line 254
    :cond_0
    return-void

    :cond_1
    move v0, v2

    .line 230
    goto :goto_0
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 264
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/b;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 266
    sget v0, Lcom/facebook/aw;->inbox_listview:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    .line 267
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/instagram/android/directshare/d/d;->a:Lcom/instagram/android/directshare/d/a;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 268
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    new-instance v1, Lcom/instagram/android/directshare/d/h;

    invoke-direct {v1, p0}, Lcom/instagram/android/directshare/d/h;-><init>(Lcom/instagram/android/directshare/d/d;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 279
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/instagram/android/directshare/d/d;->d:Lcom/instagram/android/directshare/d/n;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 281
    sget v0, Lcom/facebook/aw;->inbox_requests_separator:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->i:Landroid/view/View;

    .line 282
    sget v0, Lcom/facebook/aw;->inbox_requests_row:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    .line 283
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/instagram/android/directshare/d/i;

    invoke-direct {v1, p0}, Lcom/instagram/android/directshare/d/i;-><init>(Lcom/instagram/android/directshare/d/d;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 291
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->Y()V

    .line 293
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/directshare/d/d;->ah:Lcom/instagram/android/d/k/l;

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/d/s;->a(Lcom/instagram/android/d/k/l;)V

    .line 294
    return-void
.end method

.method a(Lcom/instagram/android/directshare/d/b;Z)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 463
    iput-boolean p2, p0, Lcom/instagram/android/directshare/d/d;->ag:Z

    .line 464
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    .line 465
    sget-object v1, Lcom/instagram/android/directshare/d/b;->b:Lcom/instagram/android/directshare/d/b;

    if-ne p1, v1, :cond_0

    .line 466
    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/s;->h()V

    .line 470
    :goto_0
    return-void

    .line 468
    :cond_0
    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/s;->i()V

    goto :goto_0
.end method

.method public a(Ljava/io/File;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 488
    invoke-static {p0, p2, p1}, Lcom/instagram/android/util/i;->a(Landroid/support/v4/app/Fragment;ILjava/io/File;)V

    .line 489
    return-void
.end method

.method public a_(I)V
    .locals 0
    .parameter

    .prologue
    .line 517
    return-void
.end method

.method public a_(Landroid/content/Intent;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 483
    invoke-virtual {p0, p1, p2}, Lcom/instagram/android/directshare/d/d;->a(Landroid/content/Intent;I)V

    .line 484
    return-void
.end method

.method public b(Ljava/io/File;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 493
    invoke-static {p0, p2, p1}, Lcom/instagram/creation/base/e;->a(Landroid/support/v4/app/Fragment;ILjava/io/File;)V

    .line 494
    return-void
.end method

.method public c()V
    .locals 1

    .prologue
    .line 498
    invoke-static {}, Lcom/instagram/android/activity/MainTabActivity;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 499
    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->onBackPressed()V

    .line 503
    :goto_0
    return-void

    .line 501
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->ab()V

    goto :goto_0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 578
    const-string v0, "direct_share_inbox"

    return-object v0
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 298
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->e(Landroid/os/Bundle;)V

    .line 299
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->e:Lcom/instagram/android/activity/k;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/k;->a(Landroid/os/Bundle;)V

    .line 300
    const-string v0, "InboxFragment.IGNORE_ADD_TO_BACKSTACK_ARGUMENT"

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 301
    return-void
.end method

.method public g_()V
    .locals 2

    .prologue
    const/4 v0, 0x0

    .line 364
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 365
    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->Z:Landroid/view/View;

    .line 366
    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->g:Landroid/widget/ListView;

    .line 367
    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->h:Landroid/widget/LinearLayout;

    .line 368
    iput-object v0, p0, Lcom/instagram/android/directshare/d/d;->i:Landroid/view/View;

    .line 370
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/directshare/d/d;->ah:Lcom/instagram/android/d/k/l;

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/d/s;->b(Lcom/instagram/android/d/k/l;)V

    .line 371
    return-void
.end method

.method public k_()V
    .locals 1

    .prologue
    .line 358
    invoke-super {p0}, Lcom/instagram/e/b/b;->k_()V

    .line 359
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->b:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->c()V

    .line 360
    return-void
.end method

.method public w()V
    .locals 7

    .prologue
    const/4 v1, 0x0

    const/4 v2, 0x1

    .line 314
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 315
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->f:Lcom/instagram/android/feed/e/b;

    invoke-virtual {v0}, Lcom/instagram/android/feed/e/b;->b()V

    .line 317
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/instagram/m/b/a;->o(Z)V

    .line 321
    iget-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->aa:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->i()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v3, "InboxFragment.ADD_TO_BACKSTACK"

    invoke-virtual {v0, v3}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_5

    :cond_0
    move v0, v2

    .line 325
    :goto_0
    if-eqz v0, :cond_1

    .line 326
    invoke-static {}, Lcom/instagram/android/c2dm/k;->a()Lcom/instagram/android/c2dm/k;

    move-result-object v3

    invoke-virtual {v3}, Lcom/instagram/android/c2dm/k;->c()V

    .line 327
    invoke-static {}, Lcom/instagram/android/directshare/j/a;->a()Lcom/instagram/android/directshare/j/a;

    move-result-object v3

    invoke-virtual {v3}, Lcom/instagram/android/directshare/j/a;->b()V

    .line 330
    :cond_1
    invoke-static {}, Lcom/instagram/android/directshare/d/w;->c()Z

    move-result v3

    if-eqz v3, :cond_6

    .line 333
    if-eqz v0, :cond_2

    .line 334
    new-instance v0, Lcom/instagram/android/directshare/b/a/o;

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {p0}, Lcom/instagram/android/directshare/d/d;->u()Landroid/support/v4/app/aj;

    move-result-object v4

    new-instance v5, Lcom/instagram/android/directshare/d/m;

    const/4 v6, 0x0

    invoke-direct {v5, p0, v6}, Lcom/instagram/android/directshare/d/m;-><init>(Lcom/instagram/android/directshare/d/d;Lcom/instagram/android/directshare/d/e;)V

    invoke-direct {v0, v3, v4, v5}, Lcom/instagram/android/directshare/b/a/o;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;)V

    invoke-virtual {v0}, Lcom/instagram/android/directshare/b/a/o;->g()V

    .line 344
    :cond_2
    :goto_1
    iget-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->ab:Z

    if-eqz v0, :cond_3

    .line 345
    invoke-direct {p0, v2}, Lcom/instagram/android/directshare/d/d;->a(Z)V

    .line 346
    iput-boolean v1, p0, Lcom/instagram/android/directshare/d/d;->ab:Z

    .line 349
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->ac:Landroid/content/BroadcastReceiver;

    iget-object v1, p0, Lcom/instagram/android/directshare/d/d;->ad:Landroid/content/IntentFilter;

    invoke-static {v0, v1}, Lcom/instagram/n/d;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 351
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->ac()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 352
    invoke-direct {p0}, Lcom/instagram/android/directshare/d/d;->aa()V

    .line 354
    :cond_4
    return-void

    :cond_5
    move v0, v1

    .line 321
    goto :goto_0

    .line 341
    :cond_6
    invoke-static {}, Lcom/instagram/android/directshare/d/w;->a()Ljava/util/List;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/instagram/android/directshare/d/d;->a(Ljava/util/List;)V

    goto :goto_1
.end method

.method public x()V
    .locals 1

    .prologue
    .line 305
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 306
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->f:Lcom/instagram/android/feed/e/b;

    invoke-virtual {v0}, Lcom/instagram/android/feed/e/b;->a()V

    .line 307
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/directshare/d/d;->aa:Z

    .line 309
    iget-object v0, p0, Lcom/instagram/android/directshare/d/d;->ac:Landroid/content/BroadcastReceiver;

    invoke-static {v0}, Lcom/instagram/n/d;->a(Landroid/content/BroadcastReceiver;)V

    .line 310
    return-void
.end method
